import request from "@/utils/request";

export const getCheListApi = (params) => {
  return request({
    method: "GET",
    url: "/manager/truckType/page",
    params,
  });
};

//获取车辆单行车型数据
export const getCheDangDateApi = (id) => {
  return request({
    method: "GET",
    url: `/manager/truckType/${id}`,
    params: {
      0: id,
    },
  });
};
// 获取车辆数量
export const getCheNumberApi = () => {
  return request({
    method: "GET",
    url: "manager/count",
  });
};
// 获取车辆列表
export const getCheLiangListApi = (params) => {
  return request({
    method: "GET",
    url: "/manager/truck/page",
    params,
  });
};
// 下拉框列表数据
export const getCheLiangListZongApi = () => {
  return request({
    method: "GET",
    url: "/manager/truckType/simple",
  });
};
// 获取车辆详情数据
export const getXiangqingDateApi = (id) => {
  return request({
    method: "GET",
    url: `/manager/truck/${id}`,
    params: {
      0: id,
    },
  });
};
// 获取回车登记列表
export const gethuicheListApi = (data) => {
  return request({
    method: "POST",
    url: "/manager/truck-return-register/pageQuery",
    data,
  });
};
//获取树状下拉选择框
export const getTreeListApi = () => {
  return request({
    method: "GET",
    url: "/manager/business-hall/tree",
  });
};
